import { defHttp } from '/@/utils/http/axios';
import { IDeleteLogsDeleteQuery } from '/@/types/system/senior/logs/delete';
import { IPostLogsQueryQuery, IPostLogsQueryResponse } from '/@/types/system/senior/logs/query';
import { IGetLogsExcelQuery } from '/@/types/system/senior/logs/excel';

/**
 * 删除登录日志
 */
export const apiDeleteLogsDeleteQuery = (params: IDeleteLogsDeleteQuery) =>
  defHttp.delete({ url: `/system/senior/logs/delete`, params });
/**
 * 登录日志列表
 */
export const apiPostLogsQueryQuery = (params: IPostLogsQueryQuery) =>
  defHttp.post<IPostLogsQueryResponse>({ url: `/system/senior/logs/query`, params });
/**
 * 登录日志导出
 */
export const apiGetLogsExcelQuery = (params: IGetLogsExcelQuery) =>
  defHttp.get({ url: `/system/senior/logs/excel`, params });
